package com.nut.spp.api.admin;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/admin/orderGoods")
public class OrderGoodsController {

//    @Autowired
//    private OrderGoodsService orderGoodsService;
//
////    @GetMapping(value = "/list/{orderId}")
////    public Result<List<OrderGoods>> selectByOrderId(@PathVariable Long orderId) {
////        return orderGoodsService.selectByOrderId(orderId);
////    }
//
//    @GetMapping(value = "/{id}")
//    public Result<OrderGoods> detail(@PathVariable Integer id) {
//        return orderGoodsService.getById(id);
//    }
//
//    @PostMapping
//    public Result add(@RequestBody OrderGoods orderGoods) {
//        return orderGoodsService.add(orderGoods);
//    }
//
//    @PutMapping
//    public Result update(@RequestBody OrderGoods orderGoods) {
//        return orderGoodsService.updateById(orderGoods);
//    }
//
//    @DeleteMapping
//    public Result delete(@RequestBody Set<Integer> ids) {
//        return orderGoodsService.deleteByIds(ids);
//    }

}